from django.db import models
from mysystem.models import Users

class Portal(models.Model):
    """文章"""
    name = models.CharField(max_length=50, verbose_name='文章名')
    content = models.CharField(max_length=50, verbose_name='内 容')
    status = models.BooleanField(default=True,verbose_name="状 态")
    class Meta:
        db_table = 'tb_portal_article'
        verbose_name = '文章表'
        verbose_name_plural = verbose_name

    def __str__(self): 
        return self.name